package com.salemanagement.service.impl;

import com.salemanagement.mapper.FrontUserStoreMapper;
import com.salemanagement.service.FrontUserStoreService;
import com.three.core.entity.FrontUserStore;
import com.three.core.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FrontUserStoreServiceImpl implements FrontUserStoreService {
    @Autowired
    private FrontUserStoreMapper frontUserStoreMapper;
    @Override
    public R findSettledMerchants() {
        List<FrontUserStore> frontUserStores = frontUserStoreMapper.selectAll();
        if (frontUserStores != null){
            return new R<>(200, "查询成功", frontUserStores);
        }else {
            return new R<>(500, "查询失败", null);
        }
    }
}
